
<table width="100%" border="1">
    <tr>
      <th scope="row" width="30%"> <div class="" style="padding:4px 0px 0px 15px;">
          <p><span class="name" style="padding:4px 0px 0px 15px;"> <a href="/index/" class="active STYLE1">首页</a></span></p>
          <p><span class="name" style="padding:4px 0px 0px 15px;"> <a href="/add_goods/" class="active STYLE1">填加商品</a></span></p>
          <p><span class="name" style="padding:4px 0px 0px 15px;"> <a href="/sell_goods/" class="active STYLE1">出售商品</a></span></p>
          <p><span class="name" style="padding:4px 0px 0px 15px;"> <a href="/list/" class="active STYLE1">察看商品列表</a> </span></p>
          <p><span class="name" style="padding:4px 0px 0px 15px;"><a href="/polling/" class="active STYLE1">拍卖中的商品</a> </span></p>
          <p><span class="name" style="padding:4px 0px 0px 15px;"><a href="/personal/" class="active STYLE1">个人竟标信息</a></span> </p>
        </div></th>
      <td>

<div class="market-listitem">
<table border="0" align="center">
        <tr align="center">

          <td>商品名称：</td>
          <td>商品数量：</td>
          <td>商品单价：</td>
          <td>起始时间：</td>
          <td>结束时间：</td>
        </tr>
        <!--
<?php

	$uid = $udb->
        sqls("select user_id from user_table where user_name='$session'");
        $uid = $uid[0]["user_id"];
        $otime = time();
        $etime = $SQLshow = $udb->sqls("select a.freight_name,b.begintime,b.endtime,b.suid,b.fid as wid,b.fnum,b.fprice from freight_table as a left join sale_table as b on a.freight_id=b.fid where a.uid=$uid");
        if ($SQLshow==false) $sql_err = $class_go->sql_err("select");
        $i = 0;
        if (!$sql_err)
        {
        foreach($SQLshow as $key=>$value)
        {
        $wid = $class_go->C_title($value[wid]);
        $wname = $class_go->C_title($value[freight_name]);
        $wnum = $class_go->C_title($value[fnum]);
        $wprice = $class_go->C_title($value[fprice]);
        $ruid = $class_go->C_title($value[suid]);
        if($value[begintime]!=0)
        {
        $btime = $class_go->r_time($value[begintime]);
        }else{$btime="";}
        if($value[endtime]!=0)
        {
        $show = $udb->sqls("select a.sale_id,a.suid,a.fprice,a.endtime from sale_table as a left join freight_table as b on a.sale_id=b.freight_id where a.endtime<$otime");
        $a = $show[0]['suid'];
        $b = $show[0]['fprice'];
        $c = $show[0]['sale_id'];
        $udb->sqls("update freight_table set uid=$a,wprice=$b where freight_id=$c");
        $udb->sqls("update sale_table set uid=$a where sale_id=$c");
        $etime = $class_go->r_time($value[endtime]);
        }
        else
        {
        $etime="";
        }
        print <<<EOT
-->
        <tr>
          <td>$wname</td>
          <td>$wnum</td>
          <td>$wprice</td>
          <td>$btime  &nbsp;&nbsp;&nbsp;</td>
          <td>$etime </td>
        </tr>
        <!--
EOT;
	$i++;
	}
}
?>
print <<<EOT
-->
      </table></tr>
</table>
<div style="clear:both"></div>
